package com.plugin.core.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 护理计划实体类
 * 
 * @author mark
 * @date 2025-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("elder_care_plan")
@Schema(name = "ElderCarePlan", description = "护理计划表")
public class ElderCarePlan  {


    @Schema(description = "护理计划ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "长者ID")
    @TableField("elder_id")
    private Long elderId;

    @Schema(description = "护工")
    @TableField("nurse_name")
    private String nurseName;

    @Schema(description = "计划内容(换药,打点滴,散步)")
    @TableField("plan_name")
    private String planName;

    @Schema(description = "开始日期")
    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime startDate;

    @Schema(description = "结束日期")
    @TableField("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime endDate;

    @Schema(description = "护理等级")
    @TableField("care_level")
    private Integer careLevel;

    @Schema(description = "状态：0-已终止，1-执行中，2-已完成")
    @TableField("status")
    private Integer status;
}
